<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>知识产权后台管理系统-官方后台</title>
    <link href="/ip/Public/css/bootstrap.min.css" rel="stylesheet">
    <!-- Toastr style -->
    <link href="/ip/Public/css/plugins/toastr/toastr.min.css" rel="stylesheet">
    <!-- Gritter -->
    <link href="/ip/Public/js/plugins/gritter/jquery.gritter.css" rel="stylesheet">
    <link href="/ip/Public/css/animate.css" rel="stylesheet">
    <link href="/ip/Public/css/style.css" rel="stylesheet">
</head>

<body>
    <div id="wrapper">
        <!-- start left -->
        <nav class="navbar-default navbar-static-side" role="navigation">
    <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element"> <span>
                             </span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <span class="clear"> <span class="block m-t-xs"> <strong class="font-bold"><?php echo ($_SESSION['nickname']); ?></strong>
                             </span> <span class="text-muted text-xs block">欢迎登录！</span> </span>
                    </a>
                </div>
            </li>
            <li class="active">
                <a href="/ip/admin.php/Home/Index/index"><i class="fa fa-diamond"></i> <span class="nav-label">后台首页</span> <span class="label label-primary pull-right">首页</span></a>
            </li>
            <li>
                <a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">用户管理</span></a>
                <ul class="nav nav-second-level">
                    <li><a href="/ip/admin.php/Home/Adminer/index">管理员管理</a></li>
                    <li><a href="/ip/admin.php/Home/User/index">会员管理</a></li>
                    <li><a href="/ip/admin.php/Home/User/recovery">会员回收站</a></li>
                </ul>
            </li>
            <li>
                <a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">网站分类管理</span></a>
                <ul class="nav nav-second-level">
                    <li><a href="/ip/admin.php/Home/Fenlei/index">查看分类</a></li>
                    <li><a href="/ip/admin.php/Home/Fenlei/add">添加分类</a></li>
                </ul>
            </li>
            <li>
                <a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">知识产权管理</span></a>
                <ul class="nav nav-second-level">
                    <li><a href="/ip/admin.php/Home/Info/index">查看知识产权</a></li>
                </ul>
            </li>
            
            <li>
                <a href="/ip/admin.php/Home/Login/logout">
                    <i class="fa fa-sign-out"></i> 退出
                </a>
            </li>
        </ul>
</nav>
</div>
        <!-- end left -->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <!-- start top -->
            
            <!-- end top -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="wrapper wrapper-content">
                        <div class="row">
                            <div class="col-lg-3">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <span class="label label-success pull-right">会员总数</span>
                                        <h5>会员数量</h5>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins"><?php echo ($userCount); ?></h1>
                                        <div class="stat-percent font-bold text-success">User<i class="fa fa-bolt"></i></div>
                                        <small>本站会员总数</small>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <span class="label label-info pull-right">文章数量</span>
                                        <h5>文章数量</h5>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins"><?php echo ($articleCount); ?></h1>
                                        <div class="stat-percent font-bold text-info">Article<i class="fa fa-level-up"></i></div>
                                        <small>本站文章总数</small>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <span class="label label-primary pull-right">留言数量</span>
                                        <h5>留言数量</h5>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins"><?php echo ($liuyanCount); ?></h1>
                                        <div class="stat-percent font-bold text-navy">Message<i class="fa fa-level-up"></i></div>
                                        <small>本站留言总数</small>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <span class="label label-danger pull-right">评论数量</span>
                                        <h5>评论数量</h5>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins"><?php echo ($commentCount); ?></h1>
                                        <div class="stat-percent font-bold text-danger">Comment<i class="fa fa-level-down"></i></div>
                                        <small>本站评论总数</small>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-lg-2">
                                <div class="widget yellow-bg p-lg text-center">
                                    <div class="m-b-md">
                                        <i class="fa fa-shield fa-4x"></i>
                                        <h1 class="m-xs">System</h1>
                                        <h3 class="font-bold no-margins">系统</h3>
                                        <small>信息</small>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="widget yellow-bg p-xl">
                                    <h2>操作系统：<?php echo php_uname('s')?></h2>
                                    <ul class="list-unstyled m-t-md">
                                        <li>
                                            <label>PHP运行方式：</label>
                                            <?php echo php_sapi_name()?>
                                        </li>
                                        <li>
                                            <label>当前文件路径：</label>
                                            <?php echo __FILE__?>
                                        </li>
                                        <li>
                                            <label>服务器IP：</label>
                                            <?php echo $_SERVER['REMOTE_ADDR'];?>
                                        </li>
                                        <li>
                                            <label>服务器域名：</label>
                                            <?php echo $_SERVER["HTTP_HOST"];?>
                                        </li>
                                        <li>
                                            <label>服务器语言：</label>
                                            <?php echo $_SERVER['HTTP_ACCEPT_LANGUAGE'];?>
                                        </li>
                                        <li>
                                            <label>服务器WEB端口：</label>
                                            <?php echo $_SERVER['SERVER_PORT'];?>
                                        </li>
                                        <li>
                                            <label>服务器CPU数量：</label>
                                            <?php echo $_SERVER['PROCESSOR_IDENTIFIER'];?>
                                        </li>
                                        <li>
                                            <label>服务器当前时间：</label>
                                            <?php echo date("Y-m-d H:i:s",time());?>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <div class="widget red-bg p-lg text-center">
                                    <div class="m-b-md">
                                        <i class="fa fa-warning fa-4x"></i>
                                        <h1 class="m-xs">PHP</h1>
                                        <h3 class="font-bold no-margins">
                                程序
                            </h3>
                                        <small>信息</small>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="widget red-bg p-xl">
                                    <h2>
                                    PHP版本：<?php echo PHP_VERSION;?>
                                </h2>
                                    <ul class="list-unstyled m-t-md">
                                        <li>
                                            <label>上传最大限制：</label>
                                            <?php echo ini_get('post_max_size');?>
                                        </li>
                                        <li>
                                            <label>错误是否打开：</label>
                                            <?php echo ini_get ( 'display_errors' );?>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- start footer -->
                
<div class="footer">
    <div class="pull-right">
        <a href="/ip/admin.php/Home/Index/index">知识产权后台管理系统</a>
    </div>
</div>
</div>
<script type="text/javascript">
    function shifou(){
        if(confirm("年轻人，你真的想好了吗？")){
            return true;
        }else{
            return false;
        }
    }
</script>
</body>
</html>
           <!-- Mainly scripts -->
    <script src="/ip/Public/js/jquery-2.1.1.js"></script>
    <script src="/ip/Public/js/inspinia.js"></script>
    <script src="/ip/Public/js/bootstrap.min.js"></script>
    <script src="/ip/Public/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="/ip/Public/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

    <!-- Flot -->
    <script src="/ip/Public/js/plugins/flot/jquery.flot.js"></script>
    <script src="/ip/Public/js/plugins/flot/jquery.flot.tooltip.min.js"></script>
    <script src="/ip/Public/js/plugins/flot/jquery.flot.spline.js"></script>
    <script src="/ip/Public/js/plugins/flot/jquery.flot.resize.js"></script>
    <script src="/ip/Public/js/plugins/flot/jquery.flot.pie.js"></script>

    <!-- Peity -->
    <script src="/ip/Public/js/plugins/peity/jquery.peity.min.js"></script>
    <script src="/ip/Public/js/demo/peity-demo.js"></script>

    <!-- Custom and plugin javascript -->

    <script src="/ip/Public/js/plugins/pace/pace.min.js"></script>

    <!-- jQuery UI -->
    <script src="/ip/Public/js/plugins/jquery-ui/jquery-ui.min.js"></script>

    <!-- GITTER -->
    <script src="/ip/Public/js/plugins/gritter/jquery.gritter.min.js"></script>

    <!-- Sparkline -->
    <script src="/ip/Public/js/plugins/sparkline/jquery.sparkline.min.js"></script>

    <!-- Sparkline demo data  -->
    <script src="/ip/Public/js/demo/sparkline-demo.js"></script>

    <!-- ChartJS-->
    <script src="/ip/Public/js/plugins/chartJs/Chart.min.js"></script>
<script>
        var s_url=window.location.pathname;
        var now_url = '';
        for(var i = 0;i<$("#side-menu li").length;i++){
            now_url=$("#side-menu li a").eq(i).attr("href");
            if(now_url == s_url){
                $("#side-menu a").eq(i).parent().addClass("active");
                $("#side-menu a").eq(i).parent().parent().parent().addClass("active");
                $("#side-menu a").eq(i).parent().parent().addClass("in");
            }else{
                $("#side-menu a").eq(i).parent().removeClass("active");
            }
        }
        </script>
    <!-- Toastr -->

                <!-- end footer -->
            </div>
        </div>
    </div>
    <div class="small-chat-box fadeInRight animated">
        <div class="heading" draggable="true">
            <small class="chat-date pull-right">
                    02.19.2015
                </small> Small chat
        </div>
        <div class="content">
            <div class="left">
                <div class="author-name">
                    Monica Jackson <small class="chat-date">
                        10:02 am
                    </small>
                </div>
                <div class="chat-message active">
                    Lorem Ipsum is simply dummy text input.
                </div>
            </div>
            <div class="right">
                <div class="author-name">
                    Mick Smith
                    <small class="chat-date">
                            11:24 am
                        </small>
                </div>
                <div class="chat-message">
                    Lorem Ipsum is simpl.
                </div>
            </div>
            <div class="left">
                <div class="author-name">
                    Alice Novak
                    <small class="chat-date">
                            08:45 pm
                        </small>
                </div>
                <div class="chat-message active">
                    Check this stock char.
                </div>
            </div>
            <div class="right">
                <div class="author-name">
                    Anna Lamson
                    <small class="chat-date">
                            11:24 am
                        </small>
                </div>
                <div class="chat-message">
                    The standard chunk of Lorem Ipsum
                </div>
            </div>
            <div class="left">
                <div class="author-name">
                    Mick Lane
                    <small class="chat-date">
                            08:45 pm
                        </small>
                </div>
                <div class="chat-message active">
                    I belive that. Lorem Ipsum is simply dummy text.
                </div>
            </div>
        </div>
    </div>
    </div>
</body>

</html>